package cn.seecoder.ai.dao;

import cn.seecoder.ai.model.po.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

import java.util.List;
import java.util.Optional;

public interface UserRepository extends JpaRepository<User, Integer> {


    Optional<User> findByUserName(String userName);

    Optional<User> findByUserNameAndPassword(String userName,String password);


    void deleteByUserName(String integer);

    List<User> findByOrganization(String organization);
}